package com.xnfh.home.pop

import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.LinearLayoutManager
import com.lxj.xpopup.impl.PartShadowPopupView
import com.xnfh.home.R
import com.xnfh.home.databinding.PopAddressBinding

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2024/1/8 13:27
 * @UpdateUser: ziheng
 * @UpdateDate: 2024/1/8 13:27
 * @UpdateRemark: 更新说明
 */
class AddressPop(val mContext: AppCompatActivity): PartShadowPopupView(mContext) {
    override fun getImplLayoutId(): Int = R.layout.pop_address

    override fun onCreate() {
        super.onCreate()
        val mBind = DataBindingUtil.bind<PopAddressBinding>(popupImplView)
        mBind?.addressProvinceRecycle?.layoutManager = LinearLayoutManager(mContext)
        mBind?.addressProvinceCityRecycle?.layoutManager = LinearLayoutManager(mContext)
    }
}